package net.ningbo;

/**
 * @Author 宁铂
 * @Date 2021/7/6 18:39
 * @Version 1.0
 */
public class Assignment {
    public static void main(String[] args) {
        Tank t1 = new Tank();
        Tank t2 = new Tank();

        t1.level = 9;
        t2.level = 47;

        System.out.println("1: t1.level: "+t1.level+", t2.level: "+t2.level);

        t1 = t2;
        System.out.println("1: t1.level: "+t1.level+", t2.level: "+t2.level);

        t1.level = 127;
        System.out.println("1: t1.level: "+t1.level+", t2.level: "+t2.level);
    }
}

class Tank{
    int level;
}
